﻿/**
* @file stepper_motor.h
* @brief this is a brief description
* @details this is the detail description.
* @author fulong 
* @data 2014/10/15
* @version 1.0
* @par Copyright (c):
* @par First build
*     version: fulong 
*     data: 2014/10/15
*/
#ifndef __STEPPER_MOTOR_H__
#define __STEPPER_MOTOR_H__
#include "../hal_include/hal_types.h"

#define CLRDR2() change_dr2(0)
#define SETDR2() change_dr2(1)
#define CLRDR3() change_dr3(0)
#define SETDR3() change_dr3(1)

#define CLRMF1() change_mf1(0)
#define SETMF1() change_mf1(1)

#define CLRMF2() change_mf2(0)
#define SETMF2() change_mf2(1)

extern  void change_dr1(uint8 data);
extern  void change_dr2(uint8 data);
extern  void change_dr3(uint8 data);
extern  void change_mf1(uint8 data);
extern  void change_mf2(uint8 data);
extern void stepper_motor_init(void);
extern void stepper_motor_speed_up(void); 

#endif /* __STEPPER_MOTOR_H__ */


